@echo off
REM ====== 阶段5：API连接器生成 ======
set PROJECT_ROOT=D:\phpstudy_pro\WWW\oa.laizone.com
cd /d %PROJECT_ROOT%

REM 安装OpenAPI生成器
npm install @openapitools/openapi-generator-cli -g

REM 生成API客户端
openapi-generator-cli generate ^
  -i openapi.yaml ^
  -g typescript-axios ^
  -o migration\frontend\vue-app\src\api

echo 阶段5完成：API客户端已生成
pause